import request from "@/utils/request";

//请求前缀
const api_prefix = "/smart";

export function querySmartData(pageNo, pageSize, location) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/query/like/${pageNo}/${pageSize}`,
    method: "GET",
    params: {
      location: location,
    },
  });
}

export function queryMachineId(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/query/machine/${id}`,
    method: "GET",
  });
}

export function handleDoSent(smartId,machineID) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/sent/${smartId}/${machineID}`,
    method: "GET",
  });
}
